Add regression test suite for GEMM analysis pipeline#40
Open
Add regression test suite for GEMM analysis pipeline#40
Conversation
- Generate synthetic PyTorch profiler traces (2 threads × 2 channels × 8 ranks) - Test all scripts in scripts/gemm_analysis/ end-to-end - Compare outputs against baseline to detect regressions - Validate numeric metrics, required columns, and data flow - Includes modular tests for individual pipeline components Files added: - tests/gemm_analysis/test_gemm_regression.py: Main pytest test suite with PipelineRunner - tests/gemm_analysis/generate_synthetic_data.py: Synthetic trace generator - tests/gemm_analysis/compare_outputs.py: Output comparison utilities - tests/gemm_analysis/README.md: Test documentation and usage guide - scripts/gemm_analysis/tracelense_with_gemm_path.py: TraceLens utility for tests Updated: - scripts/gemm_analysis/run_tracelens_analysis.sh: Enhanced for test compatibility - tests/conftest.py: Added shared test fixtures - .gitignore: Ignore test data and output directories
amd-vivekag
reviewed
Dec 12, 2025
Contributor
amd-vivekag
left a comment
There was a problem hiding this comment.
@oyazdanb Can you please share the thoughts behind this PR? What is it trying to solve? E.g. I didn't quite understand the reason behind creating a wrapper on top of Tracelens.
Collaborator
Author
the reason behind this PR is to add a test which generates synthetic data and check the scripts we have. The final goal is to make sure the outputs are correct when we add a new script for reporting or when we modify one. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Files added:
Updated: